package com.zjb.chuangxiang.myapplication;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final Polygons7view Polygons7view = (Polygons7view) findViewById(R.id.Polygons7view);
        Polygons7view.setValue1(1);
        Polygons7view.setValue2(2);
        Polygons7view.setValue3(3);
        Polygons7view.setValue4(0);
        Polygons7view.setValue5(4);
        Polygons7view.setValue6(2);
        Polygons7view.setValue7(3);
        HoloCircularProgressBar HoloCircularProgressBar = (HoloCircularProgressBar) findViewById(R.id.HoloCircularProgressBar);
        HoloCircularProgressBar.setProgress(0.6f);
        findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Polygons7view.setValue1(1);
                Polygons7view.setValue2(2);
                Polygons7view.setValue3(3);
                Polygons7view.setValue4(0);
                Polygons7view.setValue5(4);
                Polygons7view.setValue6(2);
                Polygons7view.setValue7(3);
            }
        });
    }
}
